<?php

// device fullname for mokee download web site
$devices_info = array(
    array('model' => 'a5', 'name' => 'Desire 816', 'brand' => 'HTC'),
    array('model' => 'ace', 'name' => 'Desire HD (G10)', 'brand' => 'HTC'),
    array('model' => 'amami', 'name' => 'Xperia Z1 Compact', 'brand' => 'Sony'),
    array('model' => 'aries', 'name' => 'Mi2/Mi2S', 'brand' => 'XiaoMi'),
    array('model' => 'armani', 'name' => 'RedMi 1S (C/W)', 'brand' => 'XiaoMi'),
    array('model' => 'bacon', 'name' => 'One', 'brand' => 'OnePlus'),
    array('model' => 'cancro', 'name' => 'Mi3w/Mi4', 'brand' => 'XiaoMi'),
    array('model' => 'castor', 'name' => 'Xperia Z2 Tablet LTE', 'brand' => 'Sony'),
    array('model' => 'castor_windy', 'name' => 'Xperia Z2 Tablet WiFi', 'brand' => 'Sony'),
    array('model' => 'condor', 'name' => 'Moto E', 'brand' => 'Motorola'),
    array('model' => 'crespo', 'name' => 'Nexus S', 'brand' => 'Google'),
    array('model' => 'c8817d', 'name' => 'Honor 4/4X (Kitkat)', 'brand' => 'Huawei'),
    array('model' => 'cherry', 'name' => 'Honor 4/4X', 'brand' => 'Huawei'),
    array('model' => 'd2att', 'name' => 'Galaxy S III (AT&T)', 'brand' => 'Samsung'),
    array('model' => 'd2spr', 'name' => 'Galaxy S III (Sprint)', 'brand' => 'Samsung'),
    array('model' => 'd2tmo', 'name' => 'Galaxy S III (T-Mobile)', 'brand' => 'Samsung'),
    array('model' => 'd2vzw', 'name' => 'Galaxy S III (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'd2lte', 'name' => 'Galaxy S III (Qualcomm Variants)', 'brand' => 'Samsung'),
    array('model' => 'd800', 'name' => 'G2 (AT&T)', 'brand' => 'LG'),
    array('model' => 'd801', 'name' => 'G2 (T-Mobile)', 'brand' => 'LG'),
    array('model' => 'd802', 'name' => 'G2 (Intl)', 'brand' => 'LG'),
    array('model' => 'd803', 'name' => 'G2 (Canada)', 'brand' => 'LG'),
    array('model' => 'd850', 'name' => 'G3 (AT&T)', 'brand' => 'LG'),
    array('model' => 'd851', 'name' => 'G3 (T-Mobile)', 'brand' => 'LG'),
    array('model' => 'd852', 'name' => 'G3 (Canada)', 'brand' => 'LG'),
    array('model' => 'd855', 'name' => 'G3 (Intl)', 'brand' => 'LG'),
    array('model' => 'd859', 'name' => 'G3 DualSIM (CTC/CMCC/CUCC)', 'brand' => 'LG'),
    array('model' => 'deb', 'name' => 'Nexus 7 2013 (LTE)', 'brand' => 'Google'),
    array('model' => 'dlx', 'name' => 'Droid DNA', 'brand' => 'HTC'),
    array('model' => 'dogo', 'name' => 'Xperia ZR', 'brand' => 'Sony'),
    array('model' => 'e970', 'name' => 'Optimus G (AT&T)', 'brand' => 'LG'),
    array('model' => 'e975', 'name' => 'Optimus G (Intl)', 'brand' => 'LG'),
    array('model' => 'e980', 'name' => 'Optimus G Pro (All e98x GSM)', 'brand' => 'LG'),
    array('model' => 'edison', 'name' => 'Atrix 2', 'brand' => 'Motorola'),
    array('model' => 'endeavoru', 'name' => 'One X', 'brand' => 'HTC'),
    array('model' => 'enrc2b', 'name' => 'One X+', 'brand' => 'HTC'),
    array('model' => 'evita', 'name' => 'One XL', 'brand' => 'HTC'),
    array('model' => 'falcon', 'name' => 'Moto G (Unified)', 'brand' => 'Motorola'),
    array('model' => 'ferrari', 'name' => 'Mi4i', 'brand' => 'XiaoMi'),
    array('model' => 'find5', 'name' => 'Find 5', 'brand' => 'Oppo'),
    array('model' => 'find7', 'name' => 'Find 7 (A/S)', 'brand' => 'Oppo'),
    array('model' => 'find7s', 'name' => 'Find 7 (S)', 'brand' => 'Oppo'),
    array('model' => 'flo', 'name' => 'Nexus 7 2013 (Wi-Fi)', 'brand' => 'Google'),
    array('model' => 'flounder', 'name' => 'Nexus 9 (Wi-Fi)', 'brand' => 'Google'),
    array('model' => 'g620_a2', 'name' => 'G620-A2', 'brand' => 'Huawei'),
    array('model' => 'galaxysmtd', 'name' => 'Galaxy S', 'brand' => 'Samsung'),
    array('model' => 'ghost', 'name' => 'Moto X (Unified)', 'brand' => 'Motorola'),
    array('model' => 'grouper', 'name' => 'Nexus 7 (Wi-Fi)', 'brand' => 'Google'),
    array('model' => 'h811', 'name' => 'G4 (T-Mobile)', 'brand' => 'LG'),
    array('model' => 'h815', 'name' => 'G4 (Intl)', 'brand' => 'LG'),
    array('model' => 'ham', 'name' => 'ZUK Z1', 'brand' => 'Zuk'),
    array('model' => 'hammerhead', 'name' => 'Nexus 5', 'brand' => 'Google'),
    array('model' => 'hammerheadcaf', 'name' => 'Nexus 5 CAF', 'brand' => 'Google'),
    array('model' => 'hikari', 'name' => 'Xperia Arco S', 'brand' => 'Sony'),
    array('model' => 'hlte', 'name' => 'Galaxy Note 3', 'brand' => 'Samsung'),
    array('model' => 'hltespr', 'name' => 'Galaxy Note 3 (Sprint)', 'brand' => 'Samsung'),
    array('model' => 'hltetmo', 'name' => 'Galaxy Note 3 (T-Mobile)', 'brand' => 'Samsung'),
    array('model' => 'hlteusc', 'name' => 'Galaxy Note 3 (US Cellular)', 'brand' => 'Samsung'),
    array('model' => 'hltevzw', 'name' => 'Galaxy Note 3 (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'honami', 'name' => 'Xperia Z1', 'brand' => 'Sony'),
    array('model' => 'huashan', 'name' => 'Xperia SP', 'brand' => 'Sony'),
    array('model' => 'hummingbird', 'name' => 'Nook HD', 'brand' => 'Barnes & Noble'),
    array('model' => 'i605', 'name' => 'Galaxy Note II (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'i925', 'name' => 'Galaxy Note 10.1 (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'i9100', 'name' => 'Galaxy S II (Intl)', 'brand' => 'Samsung'),
    array('model' => 'i9100g', 'name' => 'Galaxy S II (G)', 'brand' => 'Samsung'),
    array('model' => 'i9300', 'name' => 'Galaxy S III (Intl)', 'brand' => 'Samsung'),
    array('model' => 'i9305', 'name' => 'Galaxy S III (GSM LTE)', 'brand' => 'Samsung'),
    array('model' => 'i9500', 'name' => 'Galaxy S4 (non-LTE)', 'brand' => 'Samsung'),
    array('model' => 'jflte', 'name' => 'Galaxy S4', 'brand' => 'Samsung'),
    array('model' => 'jflteatt', 'name' => 'Galaxy S4 (AT&T)', 'brand' => 'Samsung'),
    array('model' => 'jfltespr', 'name' => 'Galaxy S4 (Sprint)', 'brand' => 'Samsung'),
    array('model' => 'jfltetmo', 'name' => 'Galaxy S4 (T-Mobile)', 'brand' => 'Samsung'),
    array('model' => 'jfltevzw', 'name' => 'Galaxy S4 (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'jfltexx', 'name' => 'Galaxy S4 (Intl)', 'brand' => 'Samsung'),
    array('model' => 'jordanplus', 'name' => 'Defy / Defy Plus', 'brand' => 'Motorola'),
    array('model' => 'klte', 'name' => 'Galaxy S5 (GSM)', 'brand' => 'Samsung'),
    array('model' => 'kltechn', 'name' => 'Galaxy S5 (SM-G9006V/G9008V)', 'brand' => 'Samsung'),
    array('model' => 'kltechnduo', 'name' => 'Galaxy S5 (SM-G9006W/G9008W/G9009W)', 'brand' => 'Samsung'),
    array('model' => 'klteduos', 'name' => 'Galaxy S5 (SM-G900FD Dual SIM)', 'brand' => 'Samsung'),
    array('model' => 'kltekdi', 'name' => 'Galaxy S5 au (SCL23/SC04F)', 'brand' => 'Samsung'),
    array('model' => 'kltespr', 'name' => 'Galaxy S5 (Sprint)', 'brand' => 'Samsung'),
    array('model' => 'klteusc', 'name' => 'Galaxy S5 (US Cellular)', 'brand' => 'Samsung'),
    array('model' => 'kltevzw', 'name' => 'Galaxy S5 (Verizon)', 'brand' => 'Samsung'),
    array('model' => 'ks01lte', 'name' => 'Galaxy S4 LTE-A', 'brand' => 'Samsung'),
    array('model' => 'l01f', 'name' => 'G2 (Japan)', 'brand' => 'LG'),
    array('model' => 'l55t', 'name' => 'Xperia Z3 (TD-LTE)', 'brand' => 'Sony'),
    array('model' => 'l900', 'name' => 'Galaxy Note II (Sprint)', 'brand' => 'Samsung'),
    array('model' => 'lettuce', 'name' => 'Yuphoria (YU5010)', 'brand' => 'YU'),
    array('model' => 'ls970', 'name' => 'Optimus G (Sprint)', 'brand' => 'LG'),
    array('model' => 'ls980', 'name' => 'G2 (Sprint)', 'brand' => 'LG'),
    array('model' => 'ls990', 'name' => 'G3 (Sprint)', 'brand' => 'LG'),
    array('model' => 'lt013g', 'name' => 'Galaxy Tab3 8" T311', 'brand' => 'Samsung'),
    array('model' => 'lt01lte', 'name' => 'Galaxy Tab3 8" T315', 'brand' => 'Samsung'),
    array('model' => 'lt01wifi', 'name' => 'Galaxy Tab3 8" T310', 'brand' => 'Samsung'),
    array('model' => 'm4', 'name' => 'One Mini', 'brand' => 'HTC'),
    array('model' => 'm7', 'name' => 'One (GSM)', 'brand' => 'HTC'),
    array('model' => 'm7spr', 'name' => 'One (Sprint)', 'brand' => 'HTC'),
    array('model' => 'm7vzw', 'name' => 'One (Verizon)', 'brand' => 'HTC'),
    array('model' => 'm8', 'name' => 'One 2014', 'brand' => 'HTC'),
    array('model' => 'm8d', 'name' => 'One 2014 Dual SIM', 'brand' => 'HTC'),
    array('model' => 'maguro', 'name' => 'Galaxy Nexus (GSM)', 'brand' => 'Google'),
    array('model' => 'mako', 'name' => 'Nexus 4', 'brand' => 'Google'),
    array('model' => 'maserati', 'name' => 'Droid 4', 'brand' => 'Motorola'),
    array('model' => 'mb886', 'name' => 'Atrix HD', 'brand' => 'Motorola'),
    array('model' => 'mint', 'name' => 'Xperia T', 'brand' => 'Sony'),
    array('model' => 'mione_plus', 'name' => 'Mi1 / Mi1S', 'brand' => 'XiaoMi'),
    array('model' => 'moto_msm8960', 'name' => 'Atrix HD / Razr M / Razr HD', 'brand' => 'Motorola'),
    array('model' => 'moto_msm8960_jbbl', 'name' => 'Atrix HD / Razr M / Razr HD', 'brand' => 'Motorola'),
    array('model' => 'n1', 'name' => 'N1', 'brand' => 'Oppo'),
    array('model' => 'n3', 'name' => 'N3', 'brand' => 'Oppo'),
    array('model' => 'n7000', 'name' => 'Galaxy Note (Intl)', 'brand' => 'Samsung'),
    array('model' => 'n7100', 'name' => 'Galaxy Note II (GSM Non-LTE)', 'brand' => 'Samsung'),
    array('model' => 'nicki', 'name' => 'Xperia M', 'brand' => 'Sony'),
    array('model' => 'nozomi', 'name' => 'Xperia S', 'brand' => 'Sony'),
    array('model' => 'nx40x', 'name' => 'Z5 Mini', 'brand' => 'Nubia'),
    array('model' => 'nx403a', 'name' => 'Z5S Mini', 'brand' => 'Nubia'),
    array('model' => 'nx503a', 'name' => 'Z5S', 'brand' => 'Nubia'),
    array('model' => 'nx507j', 'name' => 'Z7 Mini', 'brand' => 'Nubia'),
    array('model' => 'nx510j', 'name' => 'Z9 Max', 'brand' => 'Nubia'),
    array('model' => 'nx511j', 'name' => 'Z9 Mini', 'brand' => 'Nubia'),
    array('model' => 'obake', 'name' => 'Droid Mini / Ultra / MAXX', 'brand' => 'Motorola'),
    array('model' => 'odin', 'name' => 'Xperia ZL', 'brand' => 'Sony'),
    array('model' => 'osprey', 'name' => 'Moto G (2015)', 'brand' => 'Motorola'),
    array('model' => 'otter', 'name' => 'Kindle Fire (1st gen)', 'brand' => 'Amazon'),
    array('model' => 'otter2', 'name' => 'Kindle Fire (2nd gen)', 'brand' => 'Amazon'),
    array('model' => 'otus', 'name' => 'Moto E (2015)', 'brand' => 'Motorola'),
    array('model' => 'ovation', 'name' => 'Nook HD+', 'brand' => 'Barnes & Noble'),
    array('model' => 'p1', 'name' => 'Galaxy Tab (GSM)', 'brand' => 'Samsung'),
    array('model' => 'p3100', 'name' => 'Galaxy Tab 2 7 (GSM)', 'brand' => 'Samsung'),
    array('model' => 'p3110', 'name' => 'Galaxy Tab 2 7 (Wi-Fi)', 'brand' => 'Samsung'),
    array('model' => 'p5100', 'name' => 'Galaxy Tab 2 10.1 (GSM)', 'brand' => 'Samsung'),
    array('model' => 'p5110', 'name' => 'Galaxy Tab 2 10.1 (Wi-Fi)', 'brand' => 'Samsung'),
    array('model' => 'p760', 'name' => 'Optimus L9', 'brand' => 'LG'),
    array('model' => 'p880', 'name' => 'Optimus 4X HD', 'brand' => 'LG'),
    array('model' => 'p930', 'name' => 'Nitro HD / Optimus LTE', 'brand' => 'LG'),
    array('model' => 'peregrine', 'name' => 'Moto G LTE (Unified)', 'brand' => 'Motorola'),
    array('model' => 'pisces', 'name' => 'Mi3TD', 'brand' => 'XiaoMi'),
    array('model' => 'pyramid', 'name' => 'Sensation', 'brand' => 'HTC'),
    array('model' => 'quark', 'name' => 'Moto MAXX', 'brand' => 'Motorola'),
    array('model' => 'r7plus', 'name' => 'R7 Plus', 'brand' => 'Oppo'),
    array('model' => 'r950', 'name' => 'Galaxy Note II (US Cellular)', 'brand' => 'Samsung'),
    array('model' => 'sc03e', 'name' => 'Galaxy S III LTE (Japan)', 'brand' => 'Samsung'),
    array('model' => 'serrano3gxx', 'name' => 'Galaxy S4 Mini (3G)', 'brand' => 'Samsung'),
    array('model' => 'serranoltexx', 'name' => 'Galaxy S4 Mini (Intl)', 'brand' => 'Samsung'),
    array('model' => 'shamu', 'name' => 'Nexus 6', 'brand' => 'Google'),
    array('model' => 'sirius', 'name' => 'Xperia Z2', 'brand' => 'Sony'),
    array('model' => 'skyrocket', 'name' => 'Galaxy S II Skyrocket', 'brand' => 'Samsung'),
    array('model' => 'spyder', 'name' => 'Droid Razr / Razr MAXX (CDMA)', 'brand' => 'Motorola'),
    array('model' => 'superior', 'name' => 'Galaxy Premier (WCDMA)', 'brand' => 'Samsung'),
    array('model' => 'superiorcmcc', 'name' => 'Galaxy Premier (TD-SCDMA)', 'brand' => 'Samsung'),
    array('model' => 'surnia', 'name' => 'Moto E LTE (2015)', 'brand' => 'Motorola'),
    array('model' => 't0lte', 'name' => 'Galaxy Note II (GSM LTE)', 'brand' => 'Samsung'),
    array('model' => 't6', 'name' => 'One Max (GSM)', 'brand' => 'HTC'),
    array('model' => 't6spr', 'name' => 'One Max (Sprint)', 'brand' => 'HTC'),
    array('model' => 't6vzw', 'name' => 'One Max (Verizon)', 'brand' => 'HTC'),
    array('model' => 'taoshan', 'name' => 'Xperia L', 'brand' => 'Sony'),
    array('model' => 'targa', 'name' => 'Droid Bionic', 'brand' => 'Motorola'),
    array('model' => 'thea', 'name' => 'Moto G 2014 LTE (Unified)', 'brand' => 'Motorola'),
    array('model' => 'tianchi', 'name' => 'Xperia T2 Ultra', 'brand' => 'Sony'),
    array('model' => 'tilapia', 'name' => 'Nexus 7 (GSM)', 'brand' => 'Google'),
    array('model' => 'titan', 'name' => 'Moto G 2014 (Unified)', 'brand' => 'Motorola'),
    array('model' => 'tocino', 'name' => 'Two', 'brand' => 'OnePlus'),
    array('model' => 'togari', 'name' => 'Xperia Z Ultra', 'brand' => 'Sony'),
    array('model' => 'togari_gpe', 'name' => 'Xperia Z Ultra (GPE)', 'brand' => 'Sony'),
    array('model' => 'tomato', 'name' => 'Yureka (AO5510)', 'brand' => 'YU'),
    array('model' => 'toro', 'name' => 'Galaxy Nexus (Verizon)', 'brand' => 'Google'),
    array('model' => 'tsubasa', 'name' => 'Xperia V', 'brand' => 'Sony'),
    array('model' => 'umts_spyder', 'name' => 'Razr / Razr MAXX (GSM)', 'brand' => 'Motorola'),
    array('model' => 'victara', 'name' => 'Moto X 2014 (Unified)', 'brand' => 'Motorola'),
    array('model' => 'victara_retcn', 'name' => 'Moto X 2014 (China)', 'brand' => 'Motorola'),
    array('model' => 'ville', 'name' => 'One S', 'brand' => 'HTC'),
    array('model' => 'vs980', 'name' => 'G2 (Verizon)', 'brand' => 'LG'),
    array('model' => 'vs985', 'name' => 'G3 (Verizon)', 'brand' => 'LG'),
    array('model' => 'x9180', 'name' => 'RedBull V5', 'brand' => 'ZTE'),
    array('model' => 'xt897', 'name' => 'Photon Q', 'brand' => 'Motorola'),
    array('model' => 'xt907', 'name' => 'Droid RAZR M', 'brand' => 'Motorola'),
    array('model' => 'xt925', 'name' => 'Droid RAZR HD (GSM)', 'brand' => 'Motorola'),
    array('model' => 'xt926', 'name' => 'Droid RAZR HD (CDMA)', 'brand' => 'Motorola'),
    array('model' => 'yuga', 'name' => 'Xperia Z', 'brand' => 'Sony'),
    array('model' => 'z3', 'name' => 'Xperia Z3', 'brand' => 'Sony'),
    array('model' => 'z3c', 'name' => 'Xperia Z3 Compact', 'brand' => 'Sony'),
    array('model' => 'z3dual', 'name' => 'Xperia Z3 Dual', 'brand' => 'Sony'),
);

$hardware_info = array(
    'aries' => array('cpu' => 'Qualcomm® Snapdragon™ APQ8064',
                     'ram' => '2GB of LP-DDR3',
                     'rom' => '16GB/64GB',
                     'battery' => '2000 mAh',
                     'display' => '4.3 inch, 1280x720 pixel(342ppi)',
                     'cpuarch' => 'Arm'),
    'armani' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8628',
                     'ram' => '1GB of LP-DDR3',
                     'rom' => '8GB',
                     'battery' => '2000 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(312ppi)',
                     'cpuarch' => 'Arm'),
    'bacon' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '3GB of LP-DDR3',
                     'rom' => '16GB/64GB',
                     'battery' => '3100 mAh',
                     'display' => '5.5 inch, 1920x1080 pixel(401ppi)',
                     'cpuarch' => 'Arm'),
    'cancro' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '3GB of LP-DDR3',
                     'rom' => '16GB/64GB',
                     'battery' => '3080 mAh',
                     'display' => '5 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'd859' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '3GB',
                     'rom' => '32GB',
                     'battery' => '3000 mAh',
                     'display' => '5.5 inch, 2560x1440 pixel(538ppi)',
                     'cpuarch' => 'Arm'),
    'ferrai' => array('cpu' => 'Qualcomm® Snapdragon™ 808',
                     'ram' => '2GB of LP-DDR3',
                     'rom' => '16GB/64GB',
                     'battery' => '3080 mAh',
                     'display' => '5 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm 64'),
    'find5' => array('cpu' => 'Qualcomm® Snapdragon™ APQ8064',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2500 mAh',
                     'display' => '5 inch, 1920x1080 pixel(424ppi)',
                     'cpuarch' => 'Arm'),
    'i9300' => array('cpu' => 'Samsung Exynos 4412',
                     'ram' => '1GB of LP-DDR3',
                     'rom' => '16GB',
                     'battery' => '2100 mAh',
                     'display' => '4.8 inch, 1280x720 pixel(306ppi)',
                     'cpuarch' => 'Arm'),
    'i9500' => array('cpu' => 'Samsung Exynos Professor 5410',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2600 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'klte'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'kltechn'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'kltechnduo'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'klteduos'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'kltekdi'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'kltespr'  => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2800 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'l900' => array('cpu' => 'Samsung Exynos 4412',
                     'ram' => '2GB of LP-DDR3',
                     'rom' => '16GB',
                     'battery' => '3100 mAh',
                     'display' => '5.5 inch, 1280x720 pixel(267ppi)',
                     'cpuarch' => 'Arm'),
    'nicki' => array('cpu' => 'Qualcomm® Snapdragon™ S4 Plus MSM8227',
                     'ram' => '1GB',
                     'rom' => '4GB',
                     'battery' => '1750 mAh',
                     'display' => '4 inch, 480x854 pixel(245ppi)',
                     'cpuarch' => 'Arm'),
    'nx40x' => array('cpu' => 'Qualcomm® Snapdragon™ APQ8064',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2300 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(312ppi)',
                     'cpuarch' => 'Arm'),
    'nx403a' => array('cpu' => 'Qualcomm® Snapdragon™ 600',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2000 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(312ppi)',
                     'cpuarch' => 'Arm'),
    'nx507j' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2300 mAh',
                     'display' => '5 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'nx510j' => array('cpu' => 'Qualcomm® Snapdragon™ 810',
                     'ram' => '3GB of LP-DDR4',
                     'rom' => '16GB',
                     'battery' => '2900 mAh',
                     'display' => '5.5 inch, 1920x1080 pixel(401ppi)',
                     'cpuarch' => 'Arm 64'),
    'nx511j' => array('cpu' => 'Qualcomm® Snapdragon™ 615',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2900 mAh',
                     'display' => '5.0 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm 64'),
    'shamu' => array('cpu' => 'Qualcomm® Snapdragon™ 805',
                     'ram' => '3GB',
                     'rom' => '32G/64GB',
                     'battery' => '3220 mAh',
                     'display' => '5.96 inch, 2560x1440 pixel(493ppi)',
                     'cpuarch' => 'Arm'),
    'togari' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8974',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '3050 mAh',
                     'display' => '6.44 inch, 1920x1080 pixel(342ppi)',
                     'cpuarch' => 'Arm'),
    'togari_gpe' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8974',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '3050 mAh',
                     'display' => '6.44 inch, 1920x1080 pixel(342ppi)',
                     'cpuarch' => 'Arm'),
    'tomato' => array('cpu' => 'Qualcomm® Snapdragon™ 615',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2500 mAh',
                     'display' => '5.5 inch, 1280x720 pixel(267ppi)',
                     'cpuarch' => 'Arm 64'),
    'toro' => array('cpu' => 'TI® OMAP™ 4460',
                     'ram' => '1GB',
                     'rom' => '16GB/32GB',
                     'battery' => '1850 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(316ppi)',
                     'cpuarch' => 'Arm'),
    'tsubasa' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8960',
                     'ram' => '1GB',
                     'rom' => '8GB',
                     'battery' => '1700 mAh',
                     'display' => '4.3 inch, 1280x720 pixel(342ppi)',
                     'cpuarch' => 'Arm'),
    'tocino' => array('cpu' => 'Qualcomm® Snapdragon™ 810',
                     'ram' => '3GB/4GB of LP-DDR4',
                     'rom' => '16GB/64GB',
                     'battery' => '3300 mAh',
                     'display' => '5.5 inch, 1920x1080 pixel(401ppi)',
                     'cpuarch' => 'Arm 64'),
    'umts_spyder' => array('cpu' => 'TI® OMAP™ 4430',
                     'ram' => '1GB',
                     'rom' => '8GB',
                     'battery' => '1780 mAh/3300 mAh(MAXX)',
                     'display' => '4.3 inch, 960x540 pixel(256ppi)',
                     'cpuarch' => 'Arm'),
    'victara' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2300 mAh',
                     'display' => '5.2 inch, 1920x1080 pixel(424ppi)',
                     'cpuarch' => 'Arm'),
    'victara_retcn' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '2300 mAh',
                     'display' => '5.2 inch, 1920x1080 pixel(424ppi)',
                     'cpuarch' => 'Arm'),
    'vs980' => array('cpu' => 'Qualcomm® Snapdragon™ 800',
                     'ram' => '2GB',
                     'rom' => '16GB/32GB',
                     'battery' => '3000 mAh',
                     'display' => '5.2 inch, 1920x1080 pixel(424ppi)',
                     'cpuarch' => 'Arm'),
    'vs985' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB/3GB',
                     'rom' => '16GB/32GB',
                     'battery' => '3000 mAh',
                     'display' => '5.5 inch, 2560x1440 pixel(538ppi)',
                     'cpuarch' => 'Arm'),
    'x9180' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8926',
                     'ram' => '2GB',
                     'rom' => '8GB',
                     'battery' => '2400 mAh',
                     'display' => '5 inch, 1280x720 pixel(294ppi)',
                     'cpuarch' => 'Arm'),
    'xt907' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8960',
                     'ram' => '1GB',
                     'rom' => '8GB',
                     'battery' => '2000 mAh',
                     'display' => '4.3 inch, 960x540 pixel(256ppi)',
                     'cpuarch' => 'Arm'),
    'xt925' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8960',
                     'ram' => '1GB',
                     'rom' => '16GB',
                     'battery' => '2530 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(312ppi)',
                     'cpuarch' => 'Arm'),
    'xt926' => array('cpu' => 'Qualcomm® Snapdragon™ MSM8960',
                     'ram' => '1GB',
                     'rom' => '16GB',
                     'battery' => '2530 mAh',
                     'display' => '4.7 inch, 1280x720 pixel(312ppi)',
                     'cpuarch' => 'Arm'),
    'yuga' => array('cpu' => 'Qualcomm® Snapdragon™ 800',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '3000 mAh',
                     'display' => '5 inch, 1920x1080 pixel(441ppi)',
                     'cpuarch' => 'Arm'),
    'z3' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '3GB',
                     'rom' => '16GB',
                     'battery' => '3100 mAh',
                     'display' => '5.2 inch, 1920x1080 pixel(424ppi)',
                     'cpuarch' => 'Arm'),
    'z3c' => array('cpu' => 'Qualcomm® Snapdragon™ 801',
                     'ram' => '2GB',
                     'rom' => '16GB',
                     'battery' => '2600 mAh',
                     'display' => '4.6 inch, 1280x720 pixel(319ppi)',
                     'cpuarch' => 'Arm'),
);

foreach ($devices_info as $k => $val) {
    $device_info[$val['model']] = $val['brand'] . ' ' . $val['name'];
}
